from_hex

pure static function from_hex(value: text): big_integer

Parses an unsigned hexadecimal text representation of a big_integer.

Base prefixes are not supported, so one must write e.g. integer.from_hex('CAFE') rather than integer.from_hex('0xCAFE').

Case is ignored, i.e. integer.from_hex('CAFE') and integer.from_hex('cafe') are equivalent.

Since

0.12.0

Parameters

value

the hexadecimal text to be parsed

Throws

exception

if the text representation is ill-formed